// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.


import Vue from 'vue'
import App from './App'
import router from './router'
import 'animate.css';
Vue.use(router);

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

import store from './store'


Vue.prototype.goid = function(url,id){
  router.push({
    path:url,
    query:{
      id:id
    }
  })
}

import VueClipboard from 'vue-clipboard2'
Vue.use(VueClipboard)

import VueCropper from 'vue-cropper'
Vue.use(VueCropper)



Vue.config.productionTip = false

import {copy,go,openw,back,duwenjian} from './assets/changyong.js'
Vue.prototype.copy = copy
Vue.prototype.go = go
Vue.prototype.openw = openw
Vue.prototype.duwenjian = duwenjian
Vue.prototype.back = function(){
  router.go(-1)
}


router.beforeEach((to, from, next) => {


  next()


})

/* eslint-disable no-new */

new Vue({
  el: '#app',
  router,store,
  components: { App },
  template: '<App/>'
})
